package com.xjust.controller.userLogin;

import com.xjust.pojo.Result;
import com.xjust.service.UserLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserLoginController {
    @Autowired
    UserLoginService userLoginService;
    @RequestMapping("/login")
    public Result login(Integer id,String password){
        String type = userLoginService.login(id,password);
        return Result.success(type);
    }
}
